package inc.jmc.cyberboard.ui;

import inc.jmc.cyberboard.ui.config.IncomingOperationsThread;
import inc.jmc.cyberboard.ui.config.vo.OperacionesRequestBean;

import java.util.concurrent.Callable;

public class StartStopTask implements Callable<Integer> {

	IncomingOperationsThread th;
	String ip;
	int port;
	OperacionesRequestBean jobBean;
	public StartStopTask(
			String ip,int port,OperacionesRequestBean jobBean){
		this.ip = ip;
		this.port = port;
		this.jobBean = jobBean;
		
	}
	public Integer call() throws Exception {
		int val = IncomingOperationsThread.sendOperacionClient(
				ip, port, jobBean);
		return new Integer(val);
	}

}
